Carbon


FSpDirCreate

Header: Files.h Carbon status: Supported

Creates a new directory.

OSErr FSpDirCreate (
    const FSSpec *spec, 
    ScriptCode scriptTag, 
    SInt32 *createdDirID
);
spec

A pointer to an FSSpec structure specifying the directory to be created.

scriptTag

The code of the script system in which the directory name is to be displayed. If you have established the name and location of the new directory using either the StandardPutFile or CustomPutFile procedure, specify the script code returned in the reply structure. Otherwise, specify the system script by setting the scriptTag parameter to the value smSystemScript.

createdDirID

On return, a pointer to the directory ID of the directory that was created.

function result

A result code.

DISCUSSION

The FSpDirCreate function sets the date and time of creation and last modification to the current date and time.

AVAILABILITY

Supported in Carbon. Available in Mac OS 8.1 and later when Carbon 1.0.2 or later is present.


© 2000 Apple Computer, Inc. — (Last Updated 5/8/2000)